<!DOCTYPE html>
<html	xmlns="http://www.w3c.org/1999/xhtml"
		xmlns:h="http://xmlns.jcp.org/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:fn="http://java.sun.com/jsp/jstl/functions"
		xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>	
	<p:panelGrid columns="1" style="width:100%;">
		<p:panelGrid columns="2">
			<h:outputText value="Compress: " />
			<p:selectBooleanCheckbox value="#{uploadBean.compress}">
				<p:ajax/> 
			</p:selectBooleanCheckbox>
		</p:panelGrid>
		<p:fileUpload	fileUploadListener="#{uploadBean.handleFileUpload}" 
						mode="advanced" dragDropSupport="true" multiple="true"
						allowTypes="/(\.|\/)(txt|pst|ost)$/" style="width:60%;"
						fileLimit="#{uploadBean.maxNumOfFileUpload}" 
						sizeLimit="#{uploadBean.maxSizeOfFileUpload}"/>
	</p:panelGrid>
</h:body>
</html>		